<form class="layui-form search-form">
   
     <div class="layui-input-inline">
         <input type="text" name="keywords" required  placeholder="任务名称/昵称关键字" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-input-inline">
         <input type="text" name="date" required  placeholder="请选择发布日期" autocomplete="off" class="layui-input" id="test1">
    </div>
    <div class="layui-input-inline">
        <select name="status">
            <option value="">任务状态</option>
            <option value="1">待审核</option>
            <option value="2">待接单</option>
            <option value="3">待完成</option>
            <option value="4">已完成</option>
            <option value="5">已取消</option>
        </select>
    </div>
     
    <button class="layui-btn layui-btn-sm" lay-filter="searchform" lay-submit="">
        <i class="fa fa-search">
        </i>
        查询
    </button>
      <button class="layui-btn layui-btn-sm layui-plus" type="button">
        <i class="fa fa-plus">
        </i>
        添加任务
    </button>
   
</form>
<table class="layui-table data-table" lay-filter="data_table">
</table>

<script id="toolbar_normal" type="text/html">
    {{#  if(d.type == 1){ }}
      <a class="layui-btn layui-btn-xs" lay-event="edit">
          <i class="fa fa-edit">
          </i>
         编辑
      </a>
    {{#  } else { }}
       <a class="layui-btn layui-btn-xs" lay-event="look">
          <i class="fa fa-edit">
          </i>
         查看
        </a>
    {{#  } }}

    {{#  if(d.status == 7){ }}
        <a class="layui-btn layui-btn-xs" lay-event="order_check">
        订单审核
        </a>
    {{#  } }}

    {{#  if(d.status == 5 && d.type == 1 || d.status == 2 && d.type == 1){ }}
      <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
        <i class="fa fa-trash-o">
        </i>
        删除
      </a>
    {{#  } }}

    {{#  if(d.status == 2 || d.status == 3){ }}
     {{#  if(d.disabled){ }}
      <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disabled">
        禁用
    </a>
  
    {{#  } else { }}
      <a class="layui-btn layui-btn-xs" lay-event="enabled">
        启用
    </a>
    {{#  } }}
        {{#  if(d.is_recomm){ }}
             <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disrecomm">
            取消推荐
            </a>
        {{#  } else { }}
             <a class="layui-btn layui-btn-xs" lay-event="enrecomm">
                    添加推荐
            </a>
        {{#  } }}
        {{#  if(d.is_jingxuan){ }}
             <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="off_jingxuan">
            取消精选
            </a>
        {{#  } else { }}
             <a class="layui-btn layui-btn-xs" lay-event="add_jingxuan">
                  添加精选
            </a>
        {{#  } }}
    {{#  } }}
</script>
<script>
    layui.use('laydate', function(){
      var laydate = layui.laydate;
      
      //执行一个laydate实例
      laydate.render({
        elem: '#test1' //指定元素
      });
    });
</script>
{load href="__module__/task/task/system.js" /}
<style>
.laytable-cell-1-3{white-space:normal;}
</style>
